package com.itheima.utils;

/**
 * @Author:篍
 * @Date: 2025/07/18 15:16
 * @Description:
 */
public class ThreadLocalUtils {

    private static final ThreadLocal<Integer> THREAD_LOCAL=new ThreadLocal<>();

    public static void setId(Integer id){
        THREAD_LOCAL.set(id);
    }

    public static Integer getId(){
        return THREAD_LOCAL.get();
    }

    public static void remove(){
        THREAD_LOCAL.remove();
    }

}
